package com.ccrfid.rmc6.entity.business.rollcall2;

import com.vividsolutions.jts.geom.Point;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "rc_record_detail")
public class RcRecordDetailEntity {
    private Long id;
    private Long recordId;
    private Timestamp rollcallTime;
    private Long personnelId;
    private String personnelName;
    private Long cardNumber;
    private Point pos;
    private Integer floorNumber;
    private Long locationId;
    private String locationName;
    private Timestamp locateTime;
    private Integer rollcallStatus;
    private String remark;
    private Integer orgId;
    private String orgName;
    private String personnelSn;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "record_id", nullable = false)
    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    @Basic
    @Column(name = "rollcall_time", nullable = false)
    public Timestamp getRollcallTime() {
        return rollcallTime;
    }

    public void setRollcallTime(Timestamp rollcallTime) {
        this.rollcallTime = rollcallTime;
    }

    @Basic
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name", length = 45)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "card_number")
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "pos")
    @Type(type = "jts_geometry")
    public Point getPos() {
        return pos;
    }

    public void setPos(Point pos) {
        this.pos = pos;
    }

    @Basic
    @Column(name = "floor_number")
    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    @Basic
    @Column(name = "location_id")
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "location_name")
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Basic
    @Column(name = "locate_time")
    public Timestamp getLocateTime() {
        return locateTime;
    }

    public void setLocateTime(Timestamp locateTime) {
        this.locateTime = locateTime;
    }

    @Basic
    @Column(name = "rollcall_status", nullable = false)
    public Integer getRollcallStatus() {
        return rollcallStatus;
    }

    public void setRollcallStatus(Integer rollcallStatus) {
        this.rollcallStatus = rollcallStatus;
    }

    @Basic
    @Column(name = "remark", length = 255)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "org_id")
    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "org_name", length = 64)
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "personnel_sn", length = 45)
    public String getPersonnelSn() {
        return personnelSn;
    }

    public void setPersonnelSn(String personnelSn) {
        this.personnelSn = personnelSn;
    }

}
